package com.huanyang.user.init;

import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class ApplicationInit implements ApplicationListener<ApplicationReadyEvent> {

    @Override
    public void onApplicationEvent(ApplicationReadyEvent event) {
        // 预热fastjson
        // 预热线程池
        System.out.println("服务启动完成");
    }

    private void initFastJson() {

    }
}
